package cn.tedu.proxy;

import java.lang.reflect.Proxy;

public class JdkProxyTests {
    public static void main(String[] args) {
        //通过JDK代理，为目标业务类MessageServiceImpl创建代理对象
        //并增加扩展功能，如何实现？
        //提示：homework
        MessageService messageService =
                new MessageServiceImpl();
        messageService.sayHello("tony");
        //Proxy.newProxyInstance()
    }
}
